<html>
<head><meta charset="utf-8"><title>How can I ignore tests on platforms without atomics? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html">How can I ignore tests on platforms without atomics?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="246800076"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246800076" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246800076">(Jul 22 2021 at 01:22)</a>:</h4>
<p>Normally I could use <code>cfg(target_has_atomic)</code>. But there's no way to use cfg's on test annotations, so compiletest will give an error that the error is missing. Is there a way to ignore the test altogether?</p>



<a name="246800093"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246800093" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246800093">(Jul 22 2021 at 01:23)</a>:</h4>
<p>specifically this is the test I'm trying to fix: <a href="https://github.com/rust-lang/rust/pull/84039#issuecomment-884348388">https://github.com/rust-lang/rust/pull/84039#issuecomment-884348388</a></p>



<a name="246800198"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246800198" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246800198">(Jul 22 2021 at 01:26)</a>:</h4>
<p>looks like it's not supported in <a href="https://github.com/rust-lang/rust/blob/master/src/tools/compiletest/src/header.rs">https://github.com/rust-lang/rust/blob/master/src/tools/compiletest/src/header.rs</a></p>



<a name="246800325"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246800325" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246800325">(Jul 22 2021 at 01:29)</a>:</h4>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="c1">// only-x86_64</span>
<span class="c1">// only-aarch64</span>
</code></pre></div>
<p>is probably a close enough hack; it should at least test all tier 1 platforms</p>



<a name="246801449"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801449" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801449">(Jul 22 2021 at 01:56)</a>:</h4>
<p>/me wonders how hard it would be to actually apply cfg annotations to tests...</p>



<a name="246801465"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801465" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801465">(Jul 22 2021 at 01:57)</a>:</h4>
<p>pretty hard I think, compiletest would have to either parse rust (ugh) or somehow know what <code>cfg</code> knobs rustc sets</p>



<a name="246801469"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801469" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801469">(Jul 22 2021 at 01:57)</a>:</h4>
<p>I guess it could run <code>rustc --print cfg</code> and expose that in headers somehow</p>



<a name="246801608"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801608" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801608">(Jul 22 2021 at 02:00)</a>:</h4>
<p>We don't have to actually parse Rust. We could pull out all the <code>cfg</code> directives and generate tiny stubs like <code>fn test_1234() { #[cfg(...)] { println!("..."); } }</code> or equivalent, run the resulting program, and use all the tokens in the output to determine if the matching config exprs are true or false.</p>



<a name="246801615"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801615" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801615">(Jul 22 2021 at 02:00)</a>:</h4>
<p>Massive hack, but it should work and not be too slow.</p>



<a name="246801633"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801633" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801633">(Jul 22 2021 at 02:00)</a>:</h4>
<p>that sounds a lot more work than <code>--print cfg</code> <span aria-label="sweat smile" class="emoji emoji-1f605" role="img" title="sweat smile">:sweat_smile:</span></p>



<a name="246801643"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801643" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801643">(Jul 22 2021 at 02:00)</a>:</h4>
<p>True enough.</p>



<a name="246801660"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801660" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801660">(Jul 22 2021 at 02:00)</a>:</h4>
<p>We could make something work using <code>--print cfg</code>, we'd just lose the ability to do more complex boolean combinations.</p>



<a name="246801662"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801662" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801662">(Jul 22 2021 at 02:00)</a>:</h4>
<p>also that sounds vaguely like <code>configure</code> and I hate configure with a burning passion <span aria-label="laughing" class="emoji emoji-1f606" role="img" title="laughing">:laughing:</span></p>



<a name="246801676"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801676" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801676">(Jul 22 2021 at 02:01)</a>:</h4>
<p>I don't think it's like <code>configure</code>.</p>



<a name="246801756"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801756" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801756">(Jul 22 2021 at 02:02)</a>:</h4>
<p>If we see <code>cfg(arbitrary expression here)</code>, we emit:</p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="cp">#[cfg(arbitrary expression here)]</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="fm">println!</span><span class="p">(</span><span class="s">"cfg(arbitrary expression here)"</span><span class="p">);</span><span class="w"> </span><span class="p">}</span><span class="w"></span>
</code></pre></div>
<p>Then we parse all the output into a HashSet and match against it, considering anything we see true and anything else as false.</p>



<a name="246801768"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801768" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801768">(Jul 22 2021 at 02:02)</a>:</h4>
<p>/me is not volunteering :P</p>



<a name="246801771"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246801771" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246801771">(Jul 22 2021 at 02:02)</a>:</h4>
<p>Fair. :)</p>



<a name="246836693"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246836693" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246836693">(Jul 22 2021 at 11:56)</a>:</h4>
<p>I don't think we actually have a need for complex boolean expressions probably? It seems like we could get away with just rustc --print cfg realistically.</p>



<a name="246915064"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246915064" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246915064">(Jul 22 2021 at 22:55)</a>:</h4>
<p>Idea that gives us full boolean expression support: add a <code>-Z</code> option that makes rustc evaluate an arbitrary config expression and say whether it thinks it's true or false. rustc already knows how to do that, so it's just a matter of exposing the functionality.</p>



<a name="246915114"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246915114" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246915114">(Jul 22 2021 at 22:56)</a>:</h4>
<p>I imagine it might be useful to someone else too.</p>



<a name="246915170"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246915170" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246915170">(Jul 22 2021 at 22:57)</a>:</h4>
<p>I have no idea how doable this is though.</p>



<a name="246915244"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246915244" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246915244">(Jul 22 2021 at 22:58)</a>:</h4>
<p>I don't know how _useful_ it is either</p>



<a name="246915255"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246915255" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246915255">(Jul 22 2021 at 22:58)</a>:</h4>
<p>when would you need that flexibility?</p>



<a name="246915269"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246915269" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246915269">(Jul 22 2021 at 22:58)</a>:</h4>
<p>I would have been happy with  <code>cfg_has_atomic</code> alone, I don't even need everything from <code>--print cfg</code> let alone arbitrary expressions</p>



<a name="246915278"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246915278" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246915278">(Jul 22 2021 at 22:58)</a>:</h4>
<p>Okay, fair.</p>



<a name="246915350"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246915350" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246915350">(Jul 22 2021 at 22:59)</a>:</h4>
<p><code>cfg_has_atomic</code> should be pretty doable. If we want to add support for dealing with cfg parameters that depend on command line options other than the target, that gets... interesting.</p>



<a name="246915683"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246915683" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246915683">(Jul 22 2021 at 23:02)</a>:</h4>
<p>Do you want to be able to check the value of has atomic, or just if it exists?</p>



<a name="246915708"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246915708" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246915708">(Jul 22 2021 at 23:03)</a>:</h4>
<p>just if it exists</p>



<a name="246915724"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246915724" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246915724">(Jul 22 2021 at 23:03)</a>:</h4>
<p>ugh I guess there are different has_atomic cfgs and I need to pick one</p>



<a name="246916952"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246916952" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246916952">(Jul 22 2021 at 23:21)</a>:</h4>
<p>I'll have a go at implement this, though there's at least a 50% chance I'll give up in despair. :)</p>



<a name="246916964"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246916964" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246916964">(Jul 22 2021 at 23:21)</a>:</h4>
<p>Not the whole rustc thing, just the <code>--print</code> version.</p>



<a name="246916970"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246916970" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246916970">(Jul 22 2021 at 23:22)</a>:</h4>
<p>the place to look is <code>src/tools/compiletest/header.rs</code></p>



<a name="246950455"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246950455" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246950455">(Jul 23 2021 at 08:04)</a>:</h4>
<p>I did it! <span aria-label="tada" class="emoji emoji-1f389" role="img" title="tada">:tada:</span></p>



<a name="246950480"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246950480" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246950480">(Jul 23 2021 at 08:04)</a>:</h4>
<p>It took a bit, but the implementation was simpler than I thought it would be.</p>



<a name="246950516"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246950516" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246950516">(Jul 23 2021 at 08:05)</a>:</h4>
<p>The  PR is <a href="https://github.com/rust-lang/rust/issues/87396">#87396</a>.</p>



<a name="246951950"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246951950" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246951950">(Jul 23 2021 at 08:23)</a>:</h4>
<p>Huh.</p>



<a name="246951960"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246951960" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246951960">(Jul 23 2021 at 08:24)</a>:</h4>
<p>Test failure.</p>



<a name="246952003"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246952003" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246952003">(Jul 23 2021 at 08:24)</a>:</h4>
<p>Why would that be...?</p>



<a name="246952376"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20can%20I%20ignore%20tests%20on%20platforms%20without%20atomics%3F/near/246952376" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> inquisitivecrystal <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20can.20I.20ignore.20tests.20on.20platforms.20without.20atomics.3F.html#246952376">(Jul 23 2021 at 08:28)</a>:</h4>
<p>Ahh. Figured it out.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>